package com.zerro.litez.runtime.migration;

public class ColumnInfo {

    private final String define;

    private String name;
    private String type;

    private boolean notnull = false;

    private String defaultValue = "";

    public ColumnInfo(String define) {
        this.define = define;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isNotnull() {
        return notnull;
    }

    public void setNotnull(boolean notnull) {
        this.notnull = notnull;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getDefine() {
        return define;
    }

    @Override
    public String toString() {
        return "ColumnInfo{" +
                "define='" + define + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", notnull=" + notnull +
                ", defaultValue='" + defaultValue + '\'' +
                '}';
    }
}
